<template>
  <div id="he-plugin-simple"></div>
</template>

<script>
export default {
  name: "weather",
  created() {
    window.WIDGET = {
      "CONFIG": {
        "modules": "0124",
        "background": "5",
        "tmpColor": "072366",
        "tmpSize": "16",
        "cityColor": "072366",
        "citySize": "16",
        "aqiColor": "072366",
        "aqiSize": "16",
        "weatherIconSize": "24",
        "alertIconSize": "18",
        "padding": "10px 10px 10px 10px",
        "shadow": "0",
        "language": "zh",
        "fixed": "false",
        "vertical": "top",
        "horizontal": "left",
        "key": "690fe2f5658245b088b48b478f451c69"
      }
    };
    (function (d) {
      var c = d.createElement('link');
      c.rel = 'stylesheet';
      c.href = "https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"
      var s = d.createElement('script');
      s.src = "https://widget.qweather.net/simple/static/js/he-simple-common.js?v=2.0"
      var sn = d.getElementsByTagName('script')[0];
      sn.parentNode.insertBefore(c, sn);
      sn.parentNode.insertBefore(s, sn);
    })(document)
  }
}
</script>

<style scoped>

</style>
